<?php

/**
 * @see Workset_Sphinx_Query
 */
require_once 'Workset/Sphinx/Query.php';


class Workset_Sphinx_Query_Expr extends Workset_Sphinx_Query {

    protected $_expr = null;

    public function __construct($expr = null) {
        if (null !== $expr) {
            $this->setExpression($expr);
        }
    }

    public function setExpression($expr) {
        $this->_expr = (string)$expr;
    }

    public function getExpression() {
        return $this->_expr;
    }

}